﻿using Microsoft.AspNet.Identity.EntityFramework;
using System.Data.Entity;
using Treely.Data.Model;
using Treely.Data.Model.Abstract;

namespace Treely.DataAccess
{
    public class ApplicationDbContext : IdentityDbContext<ApplicationUser>
    {
        public DbSet<Objective> Objectives { get; set; }

        public DbSet<LearningLink> LearningLinks { get; set; }

        public DbSet<ObjectiveSection> ObjectiveSections { get; set; }

        public DbSet<UserChild> UserChildren { get; set; }

        public DbSet<MathQuiz> MathQuizzes { get; set; }

        public DbSet<Assessment> Assessments { get; set; }

        public DbSet<MathAnswerable> MathAnswerables { get; set; }

        public ApplicationDbContext()
            : base("DefaultConnection", throwIfV1Schema: false)
        {
        }

        public static ApplicationDbContext Create()
        {
            return new ApplicationDbContext();
        }
    }
}